package com.learning.cloud.feign;

import com.learning.cloud.entity.User;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

/**
 * description:
 *
 * @author minghuiZhang
 * @date created in  15:03 2018/5/5
 * modified by
 */
@Component
public class HystrixClientFallback implements UserFeignClient {


	@Override
	public User findById(Long id) {

		return new User().id(0L).build();
	}

	@Override
	public ResponseEntity<User> findByIdPost(User user) {
		return null;
	}
}
